package com.ddm.entity.webEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ddm.enumeration.OrderStatusEnum;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("payment_record") // 对应数据库表名，根据实际修改
public class PaymentRecord  {
    @TableId(type = IdType.AUTO) // 主键策略，这里假设是自增，与表中 id 字段对应
    private Integer id;
    private Integer userId;
    private String orderNo;
    private BigDecimal amount;
    private String paymentMethod;
    @TableField(value = "order_status", jdbcType = JdbcType.VARCHAR)
    private OrderStatusEnum orderStatus;
    private Date createTime;
    private Integer subscriptionId;
}